cd ~/git/project-xssc-web
git fetch --all
git reset --hard origin/master
git pull
cd ~/git/project-xssc-web/xssc-ui
npm install

function deploy() {
        yes|cp -rf ../deploy/$1/.env.production .
        yes|cp -rf ../deploy/$1/* .
        npm run build:prod
        rm -rf /data/web/gdxybiotech/$1
        mv zuihou-ui /data/web/gdxybiotech/$1

        echo "deploy $1 ui success"
}

deploy zhuzhou
deploy yueyang
deploy chenzhou
deploy shaoyang
deploy yiyang
deploy huaihua
